package band.wukong.practice.java.core.topic.generic;

/**
 * 泛型方法
 *
 * @author wukong(wukonggg@139.com)
 */
public class GenericMethodSample {

    private static <T> void out1(T t) {
        System.out.println(t);
    }

    private static <T> void out2(T... args) {
        for (T t : args) {
            System.out.println(t);
        }
    }

    public static void main(String[] args) {
        out1("OK Computer");
        out1(true);

        out2("Creep", false);
    }

}
